package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.common.annotation.ParamTuningAnnotation;
import com.jrx.anytxn.param.entity.GaAccountingCheckConfig;
import com.jrx.anytxn.param.mapper.base.GaAccountingCheckConfigMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExtGaAccountingCheckConfigMapper extends GaAccountingCheckConfigMapper {

    /**
     * 根据产品号和租户号查询
     * @param productId
     * @param tenantId
     * @return
     */
    GaAccountingCheckConfig selectByProductIdAndTenantId(@Param("productId")String productId,@Param("tenantId")String tenantId);

    List<GaAccountingCheckConfig> selectByTenId(@Param("tenantId")String tenantId);

    @ParamTuningAnnotation
    void updateByTenIdAndProId(GaAccountingCheckConfig gaAccountingCheckConfig);

    @ParamTuningAnnotation
    int deleteByTenIdAndProId(@Param("productId")String productId,@Param("tenantId")String tenantId);

    GaAccountingCheckConfig selectByIdAndProductIdAndTenantId(@Param("id") Long id,@Param("productId")String productId,@Param("tenantId")String tenantId);

}